package com.ly.honor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.GoodsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.honor.entity.dto.OrderCreateDTO;
import com.ly.honor.entity.dto.OrderEditDTO;
import com.ly.honor.entity.dto.OrderQueryDTO;
import com.ly.honor.entity.vo.OrderQueryVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 17798
* @description 针对表【bs_goods_order】的数据库操作Service
* @createDate 2023-03-31 17:13:43
*/
public interface GoodsOrderService extends IService<GoodsOrder> {

    Page<OrderQueryVO> getOrderPage(long pageNum, long pageSize, OrderQueryDTO orderQueryDTO);

    OrderQueryVO getOrderById(Integer id);

    String addOrder(OrderCreateDTO orderCreateDTO, HttpServletRequest request);

    void updateOrder(OrderEditDTO orderEditDTO);

    List<OrderQueryVO> getOrderByOrderStatus(Integer orderStatusId, HttpServletRequest request);

    List<OrderQueryVO> getOrderByUser(HttpServletRequest request);

    void updateOrderStatus(Integer id, Integer orderStatusId);
}
